<?php $this->layout = 'public'; ?>

<div class="row">
    <div class="col-md-12">
        <div class="col-md-4 col-md-offset-4">
            <div class="col-md-10 col-md-offset-1">
                <?= $this->Flash->render('auth') ?>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title text-info">Reiniciar Senha</h3>
                    </div>
                    <div class="panel-body">

                        <form role="form" method="POST" class="form-horizontal">

                            <fieldset style="padding-top: 2%; padding-bottom: 2%">
                                <?php if (isset($errors['username'])) { ?>
                                    <div class="col-md-12 alert alert-danger">
                                        <?= $this->element('field_errors', [ "errors" => $errors, 'field' => 'username']); ?>
                                    </div>
                                <?php } ?>
                                <div class="form-group">
                                    <label class="col-md-3 control-label" for="username">Login:</label>
                                    <div class="col-md-9">
                                        <input class="form-control" placeholder="Insira seu usuario" name="username" id="username"  />
                                    </div>
                                </div>
                                <div class="col-md-12" style="padding-right: 0%">
                                    <input type="submit" class="btn btn-lg btn-info pull-right" value="Enviar" />
                                </div>
                            </fieldset>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
